<?php

namespace app\api\controller;

use app\common\model\Banner;
use app\common\model\Post;

class PropagandaController extends BaseApiController
{

    public function getBanner()
    {
        $res = (new Banner())->select()->toArray();
        $this->successReturn($res);
    }

    public function getPost()
    {
        $res = (new Post())->select()->toArray();
        $this->successReturn($res);
    }
}